package com.delay.queue.delayedqueue.redisson;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author gxing
 * @desc 注意,需要实现 Serializable 序列化
 * @date 2021/3/12
 */
@Data
public class DelayMessage implements Serializable {

    private static final long serialVersionUID = -1983288773849016924L;

    private Integer id;
    private String context;

    public DelayMessage() {
    }

    public DelayMessage(Integer id, String context) {
        this.id = id;
        this.context = context;
    }
}
